public class Test3_1 {
    public static void main(String[] args) {
        StringBuilder result = new StringBuilder();

        for (int num = 100; num <= 999; num++) {
            int a = num / 100;        // 百位
            int b = (num / 10) % 10;  // 十位
            int c = num % 10;         // 个位

            if (num == a * a * a + b * b * b + c * c * c) {
                if (result.length() > 0) {
                    result.append(",");
                }
                result.append(num);
            }
        }


   
        System.out.println(result.toString());
    }
}


